<!-- ...................... Sidebar ...................... -->			
		
		<div class="one-third last">
			<div class="sidebar">						
                
                <!-- ***** Twitter ***** -->
                <div class="twitter-widget">
                <script>
                new TWTR.Widget({
                  version: 2,
                  type: 'profile',
                  rpp: 6,
                  interval: 30000,
                  width: 300,
                  height: 350,
                  theme: {
                    shell: {
                      background: '#2074b0',
                      color: '#ffffff'
                    },
                    tweets: {
                      background: '#ffffff',
                      color: '#444444',
                      links: '#1986b5'
                    }
                  },
                  features: {
                    scrollbar: true,
                    loop: false,
                    live: true,
                    hashtags: true,
                    timestamp: false,
                    avatars: true,
                    toptweets: true,
                    behavior: 'all'
                  }
                }).render().setUser('alopezcaballero').start();
                </script> 
                <br />               
                </div><!-- .twitter-widget -->
			
					
				<!-- ***** Tab Content ***** -->
				
				<div class="tabs-box">
					<ul class="tabs">
						<li><a href="#tab1">Noticias</a></li>
						<li><a href="#tab2">Eventos</a></li>
						<li><a href="#tab3" class="last-tab">Revistas</a></li>				
					</ul>

					<div class="tab_container">
						
						<!-- Tab 1 Content -->
						
						<div id="tab1" class="tab_content">
							
							<div class="blog-posts">
								<ul>
									<?php
									if ($this->noticias_sidebar){
										foreach ($this->noticias_sidebar as $ns) {
									?>
									<li>
										<p><a href="/noticias/index/id/<?php echo $ns["id"]; ?>"><?php echo $ns["titulo"]; ?></a></p>
										<span><?php echo $ns["descripcion"]; ?></span>
									</li>
									<?php }
									} else {
										echo "<p>Proximamente llegar&aacute; este contenido.</p>";
									} 
									?>
									
								</ul>
								<div class="clear"></div>	
							</div> <!-- .sidebar-recentposts -->					
							
						</div> 
						
						<!-- Tab 2 Content -->
						   
						<div id="tab2" class="tab_content">
							
							<div class="blog-posts">
								<ul>
									<?php
									if ($this->eventos_sidebar){
										foreach ($this->eventos_sidebar as $es) {
									?>
									<li>
										<?php if ($es["foto"]) {
											echo '<a href="/eventos/index/id/'.$es["id"].'"><img src="/eventos/'.$es["foto"].'" alt="'.$es["titulo"].'" /></a>';
										}
										?>
										<p><a href="/eventos/index/id/<?php echo $es["id"]; ?>"><?php echo $es["titulo"]; ?></a></p>
										<span><?php echo $es["lugar"]; ?></span>
                                        <div style="float: left; clear: left"><h6><?php echo date("d-M-Y", strtotime($es["fecha"]))." a las ".$es["hora"]." horas"; ?></h6></div>
									</li>
									<?php }
									} else {
										echo "<p>Proximamente llegar&aacute; este contenido.</p>";
									} 
									?>
								</ul>
								<div class="clear"></div>	
							</div> <!-- .sidebar-recentposts -->
								
						</div> 
						   
						<!-- Tab 3 Content -->
						
						<div id="tab3" class="tab_content">
							<div class="recent-comments">
								<ul>
									<?php
									if ($this->revistas_sidebar){
										foreach ($this->revistas_sidebar as $rs) {
									?>
									<li><a href="/pdf/<?php echo $rs["file_name"]; ?>"><?php echo $rs["edicion"]; ?></a></li>
									<?php }
									} else {
										echo "<p>Proximamente llegar&aacute; este contenido.</p>";
									} 
									?>
								</ul>
							</div>        
						</div> 		
						
					</div> <!-- .tab_container -->	
					<div class="clear"></div>
					
				</div>	<!-- .tabs-box -->			
			
				<!-- ***** Facebook ***** -->
                
                <div id="fb-root"></div>
					<script src="http://connect.facebook.net/es_MX/all.js#xfbml=1"></script>
                    <fb:fan profile_id="154184641315311" stream="false" header="false" logobar="true" connections="15" width="300" height="335"></fb:fan>
                </div><!-- #fb-root -->                	
			
			</div> <!-- .sidebar -->		
		</div>	<!-- .one-third -->			
		
<!-- ...................... End Sidebar ...................... -->